/*
 * firstSample.fx
 *
 * Created on 23-dic-2009, 16:25:48
 */

package ProgramSamples;

import javafx.stage.Stage;           //required to render
                                     //a window
import javafx.scene.Scene;           //required to display
                                     //a circle and rectangle
                                     //in a window
import javafx.scene.shape.Rectangle; //required to
                                     //render the rectangle
import javafx.scene.paint.Color;     //required to fill and stroke
                                     //the rectangle and
                                     //circle with color
import javafx.scene.shape.Circle;    //required to render the circle

Stage {
    title: "Declaring Is Easy!"
    scene: Scene {
        width: 300;
        height: 250;
        content: [
             Circle {
                centerX: 150;
                centerY: 120;
                radius: 80;
                fill: Color.RED;
                stroke: Color.AQUAMARINE;
                strokeWidth: 10.0;
             }
             Rectangle {
                x: 25, y: 80
                width: 250, height: 80
                arcWidth: 20 arcHeight: 20
                fill: Color.web("#6649ff")
                stroke: Color.web("#003399")
                strokeWidth: 5.0
				opacity: 0.5
             } //Rectangle
        ]
    } 
}